<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
  <title>example_failed (Spec::Runner::Formatter::HtmlFormatter)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
  <pre><span class="ruby-comment cmt"># File vendor\plugins\rspec/lib/spec/runner/formatter/html_formatter.rb, line 63</span>
        <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">example_failed</span>(<span class="ruby-identifier">example</span>, <span class="ruby-identifier">counter</span>, <span class="ruby-identifier">failure</span>)
          <span class="ruby-identifier">extra</span> = <span class="ruby-identifier">extra_failure_content</span>(<span class="ruby-identifier">failure</span>)
          <span class="ruby-identifier">failure_style</span> = <span class="ruby-identifier">failure</span>.<span class="ruby-identifier">pending_fixed?</span> <span class="ruby-value">? </span><span class="ruby-value str">'pending_fixed'</span> <span class="ruby-operator">:</span> <span class="ruby-value str">'failed'</span>
          <span class="ruby-ivar">@output</span>.<span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;    &lt;script type=\&quot;text/javascript\&quot;&gt;makeRed('rspec-header');&lt;/script&gt;&quot;</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@header_red</span>
          <span class="ruby-ivar">@header_red</span> = <span class="ruby-keyword kw">true</span>
          <span class="ruby-ivar">@output</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;    &lt;script type=\&quot;text/javascript\&quot;&gt;makeRed('behaviour_#{current_behaviour_number}');&lt;/script&gt;&quot;</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@behaviour_red</span>
          <span class="ruby-ivar">@behaviour_red</span> = <span class="ruby-keyword kw">true</span>
          <span class="ruby-identifier">move_progress</span>
          <span class="ruby-ivar">@output</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;    &lt;dd class=\&quot;spec #{failure_style}\&quot;&gt;&quot;</span>
          <span class="ruby-ivar">@output</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;      &lt;span class=\&quot;failed_spec_name\&quot;&gt;#{h(example.description)}&lt;/span&gt;&quot;</span>
          <span class="ruby-ivar">@output</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;      &lt;div class=\&quot;failure\&quot; id=\&quot;failure_#{counter}\&quot;&gt;&quot;</span>
          <span class="ruby-ivar">@output</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;        &lt;div class=\&quot;message\&quot;&gt;&lt;pre&gt;#{h(failure.exception.message)}&lt;/pre&gt;&lt;/div&gt;&quot;</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">failure</span>.<span class="ruby-identifier">exception</span>.<span class="ruby-identifier">nil?</span>
          <span class="ruby-ivar">@output</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;        &lt;div class=\&quot;backtrace\&quot;&gt;&lt;pre&gt;#{format_backtrace(failure.exception.backtrace)}&lt;/pre&gt;&lt;/div&gt;&quot;</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">failure</span>.<span class="ruby-identifier">exception</span>.<span class="ruby-identifier">nil?</span>
          <span class="ruby-ivar">@output</span>.<span class="ruby-identifier">puts</span> <span class="ruby-identifier">extra</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">extra</span> <span class="ruby-operator">==</span> <span class="ruby-value str">&quot;&quot;</span>
          <span class="ruby-ivar">@output</span>.<span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;      &lt;/div&gt;&quot;</span>
          <span class="ruby-ivar">@output</span>.<span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;    &lt;/dd&gt;&quot;</span>
          <span class="ruby-ivar">@output</span>.<span class="ruby-identifier">flush</span>
        <span class="ruby-keyword kw">end</span></pre>
</body>
</html>